package com.xiyan.base.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2020/11/25 22:03
 * Description: 博客实体类
 */

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_blog")
@ApiModel(value = "Blog对象", description = "")
public class Blog extends BaseEntity {

    @ApiModelProperty(value = "博客标题")
    private String title;
    @ApiModelProperty(value = "博客内容")
    private String content;
    @ApiModelProperty(value = "点赞量")
    private Long praiseNum;
    @ApiModelProperty(value = "阅读量")
    private Long readNum;
    @ApiModelProperty(value = "作者ID")
    private String userId;
    @ApiModelProperty(value = "评论量")
    private Long commentNum;
}
